import { createApp } from 'vue'
import '@/styles/common.scss'
import App from './App.vue'
import router from './router/index.js'
import {lazyPlugin} from './directives'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

// 定义懒加载插件


// 创建 Vue 应用实例并使用插件
const app = createApp(App);
app.use(router)
   .use(pinia)
   .use(lazyPlugin)  // 注册懒加载插件
   .mount('#app');


